package com.pan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pan.domain.Apply;
import com.pan.domain.User;
import com.pan.domain.Zhanshi;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface IManagerService extends IService<User> {
    //查看申请
    List<Apply> getAllApply();

    //逻辑删除
    Boolean LogicDelete(Integer id);

    //修改部门
    Boolean changeDeptno(Integer id,Integer deptno);

    //修改职位
    Boolean changePosition(Integer id,String position);

    //修改薪水
    Boolean changeSalary(Integer id,Integer salary);

    //审批申请
    Boolean applyManager(Apply apply);

    //逻辑删除，修改审批状态
    Boolean changeApplyCondition(Apply apply);

    //添加新管理员
    Boolean setNewManager(Integer id);
}
